/**
 * 
 */
package com.zte.claa.inficombo.csa.app.service.rptparse.ext.comm;

/**
 * @author 0283000115
 * 
 * 公共通讯参数...
 *
 */

public class CommParamProps {
	private String svrip = "";
	private int port = 0;	
	private int bufsize = 2048;
	private int cmdsendtimeoutsecond=5;
	private int connwaitsecond = 7;
	private int cmdtimeoutsecond = 10;
	private int sessionidlesecond = 120;
	private String charsetname = "UTF-8";
	
	public CommParamProps(){
		
	}

	public String getSvrip() {
		return svrip;
	}

	public void setSvrip(String svrip) {
		this.svrip = svrip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getBufsize() {
		return bufsize;
	}

	public void setBufsize(int bufsize) {
		this.bufsize = bufsize;
	}

	public int getCmdsendtimeoutsecond() {
		return cmdsendtimeoutsecond;
	}

	public void setCmdsendtimeoutsecond(int cmdsendtimeoutsecond) {
		this.cmdsendtimeoutsecond = cmdsendtimeoutsecond;
	}

	public int getConnwaitsecond() {
		return connwaitsecond;
	}

	public void setConnwaitsecond(int connwaitsecond) {
		this.connwaitsecond = connwaitsecond;
	}

	public int getCmdtimeoutsecond() {
		return cmdtimeoutsecond;
	}

	public void setCmdtimeoutsecond(int cmdtimeoutsecond) {
		this.cmdtimeoutsecond = cmdtimeoutsecond;
	}

	public int getSessionidlesecond() {
		return sessionidlesecond;
	}

	public void setSessionidlesecond(int sessionidlesecond) {
		this.sessionidlesecond = sessionidlesecond;
	}

	public String getCharsetname() {
		return charsetname;
	}

	public void setCharsetname(String charsetname) {
		this.charsetname = charsetname;
	}

	public CommParamProps clone(){
		CommParamProps p = new CommParamProps();
		p.setSvrip(this.svrip);
		p.setPort(this.port);
		p.setBufsize(bufsize);
		p.setCmdsendtimeoutsecond(cmdsendtimeoutsecond);
		p.setConnwaitsecond(connwaitsecond);
		p.setCmdsendtimeoutsecond(cmdsendtimeoutsecond);
		p.setSessionidlesecond(sessionidlesecond);
		p.setCharsetname(charsetname);
		return p;
	}
}
